﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/AdmMasterPage.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="0221.aspx.cs" Inherits="admin_UC02_0222" %>

<%@ Register Src="../UserControl/CKEditor.ascx" TagName="CKEditor" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlContent" runat="server">
        <fieldset class="fieldset">
            <h1>
                加入我們資訊編輯</h1>
            <table style="width: 100%" class="FormTable">                               
                <tr>
                    <td>
                        建立日期:
                    </td>
                    <td>
                        <asp:Label ID="lblCreateDate" runat="server" Text=""></asp:Label>&nbsp;&nbsp;&nbsp;
                        處理狀態: 
                        <asp:DropDownList ID="ddlType" runat="server">
                            <asp:ListItem Text="請選擇" Value=""></asp:ListItem>
                            <asp:ListItem Text="已處理" Value="1"></asp:ListItem>
                            <asp:ListItem Text="未處理" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="請選擇開課情形"
                            ControlToValidate="ddlType"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        合作模式
                    </td>
                    <td>
                        <asp:Label ID="lblNodeName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        機構名稱
                    </td>
                    <td>
                        <asp:Label ID="lblTitle" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        機構屬性
                    </td>
                    <td>
                        <asp:Label ID="lblCustomField1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        服務區域
                    </td>
                    <td>
                        <asp:Label ID="lblServiceArea" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        郵遞區號:
                    </td>
                    <td>
                        <asp:Label ID="lblAddressZip" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;
                         縣市:<asp:Label ID="lblAddressCity" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;
                         鄉鎮市區:<asp:Label ID="lblAddressCountry" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lblAddress" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        服務項目
                    </td>
                    <td>
                        <asp:Label ID="lblService" runat="server"></asp:Label>
                    </td>
                </tr>                
                <tr>
                    <td>
                        服務對象
                    </td>
                    <td>
                        <asp:Label ID="lblServiceTarget" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        預計可提供服務之人力
                    </td>
                    <td>
                        <asp:Label ID="lblServiceType" runat="server"></asp:Label>
                        <%--<asp:Label ID="lblServiceTypeOther" runat="server"></asp:Label>--%>
                    </td>
                </tr>
                <tr>
                    <td>
                        聯絡人
                    </td>
                    <td>
                        <asp:Label ID="lblContactName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        信箱
                    </td>
                    <td>
                        <asp:Label ID="lblEmail" runat="server"></asp:Label>
                    </td>
                </tr>                
                <tr>
                    <td>
                        電話
                    </td>
                    <td>
                        <asp:Label ID="lblPhone" runat="server"></asp:Label>
                    </td>
                </tr>                                
                <tr>
                    <td valign="top">
                        其他意見
                    </td>
                    <td>
                        <asp:Label ID="lblHtmlContent" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="30px" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="儲存修改" OnClick="btnSave_Click" />
                        <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CausesValidation="false" />
                        <asp:Label ID="lblMsg" runat="server" Text="" ForeColor="Red" EnableViewState="false"></asp:Label>
                    </td>
                </tr>
            </table>
        </fieldset>
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlGv" runat="server">
        <fieldset class="fieldset">
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td align="left">
                        處理狀態:
                        <asp:DropDownList ID="ddlSearchType" runat="server">
                            <asp:ListItem Text="全部" Value=""></asp:ListItem>
                            <asp:ListItem Text="未處理" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="已處理" Value="1"></asp:ListItem>
                        </asp:DropDownList>     
                        &nbsp;
                        合作模式:
                        <asp:DropDownList ID="ddlSearchNode" runat="server">
                            <asp:ListItem Text="全部" Value="" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="標準合作模式" Value="39" ></asp:ListItem>
                            <asp:ListItem Text="其他合作模式" Value="436"></asp:ListItem>
                        </asp:DropDownList>                      
                    </td>
                    <td align="right" class="labelText">
                        <%--<asp:Button ID="btnShowAdd" runat="server" Text="新增學堂訊息" OnClick="btnShowAdd_Click"/>--%>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="2">
                        <asp:Button ID="btnSearch" runat="server" Text="搜尋" OnClick="btnSearch_Click"/>                       
                    </td>
                </tr>
            </table>
            <br />
            <asp:GridView ID="gvList" runat="server" BackColor="White" BorderColor="#DEDFDE"
                AutoGenerateColumns="false" BorderStyle="None" BorderWidth="1px" CellPadding="4"
                ForeColor="Black" GridLines="Vertical" Width="100%" CssClass="datagrid" OnRowCommand="gvList_RowCommand1"
                OnRowDataBound="gvList_RowDataBound">
                <RowStyle BackColor="#F7F7DE" />
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="建立日期">
                        <ItemTemplate>
                            <asp:HiddenField ID="hdnPostId" runat="server" Value='<%# Eval("PostId") %>' />
                            <asp:Label ID="lblCreatedDate" runat="server" Text='<%# Eval("CreatedDate","{0:yyyy-MM-dd}") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="狀態">
                        <ItemTemplate>
                            <asp:Label ID="lblType" runat="server" Text=''></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="合作模式">
                        <ItemTemplate>
                            <asp:Label ID="lblNodeName" runat="server" Text=''></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Title" HeaderText="機構名稱" ItemStyle-HorizontalAlign="Left">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ContactName" HeaderText="聯絡人" ItemStyle-HorizontalAlign="Left">
                        <ItemStyle HorizontalAlign="Left" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Email" HeaderText="電子信箱" ItemStyle-HorizontalAlign="Left">
                        <HeaderStyle Width="50px" />
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Phone" HeaderText="電話" ItemStyle-HorizontalAlign="Left">
                        <HeaderStyle Width="50px" />
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>                    
                    <%--<asp:BoundField DataField="HtmlContent" HeaderText="意見" ItemStyle-HorizontalAlign="Left">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField> --%>                   
                    <asp:TemplateField HeaderText="修改">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnModify" runat="server" CommandArgument='<%# Eval("PostId") %>'
                                Text="修改" CommandName="myModify" CausesValidation="False" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <%--<asp:TemplateField HeaderText="刪除">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%# Eval("PostId") %>'
                                CommandName="myDel" CausesValidation="False" Text="刪除" OnClientClick="return confirm('確認刪除?')" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>--%>
                </Columns>
                <EmptyDataTemplate>
                    <div align="left">
                        無資料。</div>
                </EmptyDataTemplate>
            </asp:GridView>
            <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="PagerStyle" HorizontalAlign="center"
                    OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="10"
                    ShowPageIndexBox="Never" />
        </fieldset>
    </asp:Panel>
</asp:Content>

